function verificaFormular(obj)
{
	//verific daca este completat searchtext
	control = obj.searchtext.value;
	if(control=="")
	{
		alert("Searchtext is missing!");
		obj.searchtext.focus()
		return false;
	}

	//verific daca searchtext are minim 3 caractere
	if(control.length<=2)
	{
		alert("Too short words!");
		obj.searchtext.focus()
		return false;
	}

	return true;
}

function verifica()
{	
	if(verificaFormular(document.search))
	{
		document.search.submit();
	}
	else return false;
}